xen.git
20 years agoDon't leave vncviewer processes running if xm create fails
adsharma@los-vmm.sc.intel.com [Mon, 15 Aug 2005 20:50:25 +0000 (12:50 -0800)]
Don't leave vncviewer processes running if xm create fails

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoUpgrade to Linux 2.6.12.5 patch
vh249@arcadians.cl.cam.ac.uk [Mon, 15 Aug 2005 15:34:23 +0000 (15:34 +0000)]
Upgrade to Linux 2.6.12.5 patch

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agomerge
iap10@freefall.cl.cam.ac.uk [Mon, 15 Aug 2005 14:52:59 +0000 (14:52 +0000)]
merge

20 years agoQuieten down grant table code.
iap10@freefall.cl.cam.ac.uk [Mon, 15 Aug 2005 14:52:32 +0000 (14:52 +0000)]
Quieten down grant table code.
Signed-off-by: ian@xensource.com
20 years agoTrivial fixes for a couple of xenlinux compile warnings.
akw27@arcadians.cl.cam.ac.uk [Mon, 15 Aug 2005 13:50:39 +0000 (13:50 +0000)]
Trivial fixes for a couple of xenlinux compile warnings.

Signed-off-by: <andrew.warfield@cl.cam.ac.uk>
20 years agoAdd generic_page_range() -- generic page table operation.
akw27@arcadians.cl.cam.ac.uk [Mon, 15 Aug 2005 13:16:04 +0000 (13:16 +0000)]
Add generic_page_range() -- generic page table operation.

Linux has several instances of repeated code to do updates to a range
of PTEs.  Mapping memory between domains in Xen also tends to need to
do this quite frequently, to ensure page tables have been constructed
and to look up PTE addresses when making mapping-related hypercalls.
This patch adds a generic PTE walk-and-fill operation that takes a
function pointer to call on leaf entries.  direct_remap_area_pages()
is updated to use the new call, ass are abuses of
__direct_remap_area_pages.

This patch also introduces two new helper functions for working with
page tables when mapping memory between domains:
create_lookup_pte_addr() returns the machine address of a PTE,
allocating intermediate page tables as necessary.  touch_pte_range()
ensures that page tables exist for a virtual address range.

Many of the existing linux page table operations (e.g. zap/remap/etc)
could be modified to use this interface, which would potentially
shorten up mm/memory.c a bit.

20 years agoAdd a far more complete -xen config file for x86_64, based on FC3.
iap10@firebug.cl.cam.ac.uk [Mon, 15 Aug 2005 12:41:57 +0000 (12:41 +0000)]
Add a far more complete -xen config file for x86_64, based on FC3.
From: Chengyuan Li chengyuan.li@intel.com

NB: We should probably advertise the existence of the -xen configs. These are almost certainly what end-users should be using rather than -xen0 and -xenU, which are really for the convenience of developers.

Signed-off-by: ian@xensource.com
20 years agomerge
iap10@firebug.cl.cam.ac.uk [Mon, 15 Aug 2005 12:37:12 +0000 (12:37 +0000)]
merge

20 years agoSmall change to remove difference between Xen and mainline deactivate_mm.
vh249@arcadians.cl.cam.ac.uk [Mon, 15 Aug 2005 12:26:20 +0000 (12:26 +0000)]
Small change to remove difference between Xen and mainline deactivate_mm.
While there, cleanup prepare_arch_switch as well.  This generates
identical code.

Signed-off-by: Chris Wright <chrisw@osdl.org>
20 years agoAdd a few options to the Linux x86_64 domU config.
iap10@firebug.cl.cam.ac.uk [Mon, 15 Aug 2005 10:55:11 +0000 (10:55 +0000)]
Add a few options to the Linux x86_64 domU config.
Signed-off-by: ian@xensource.com
20 years agoJust a very simple patch that removes:
kaf24@firebug.cl.cam.ac.uk [Mon, 15 Aug 2005 07:52:34 +0000 (07:52 +0000)]
Just a very simple patch that removes:

rch/xen/x86_64/mm/init.c: In function `xen_init_pt':
arch/xen/x86_64/mm/init.c:560: warning: unused variable `old_level4

rch/xen/x86_64/kernel/apic.c: In function `smp_local_timer_interrupt':
arch/xen/x86_64/kernel/apic.c:48: warning: unused variable `cpu'

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
20 years agoThe patch cleans up (ugly) setup.c that I wanted to fix for a long time
kaf24@firebug.cl.cam.ac.uk [Mon, 15 Aug 2005 07:52:19 +0000 (07:52 +0000)]
The patch cleans up (ugly) setup.c that I wanted to fix for a long time
(but did not have time for that).

It should be compiled for the native x86_64 Linux as well (but not
tested yet, so I don't guarantee):
- no #if 0 or comment out
- use CONFIG_XEN for xen specific code
- preparation for merge to the upstream
- tested both dom0 (UP and SMP) and domU

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
20 years agoThe patch attached removes pda.h and asm_offset.c by deleting unused or
kaf24@firebug.cl.cam.ac.uk [Mon, 15 Aug 2005 07:51:58 +0000 (07:51 +0000)]
The patch attached removes pda.h and asm_offset.c by deleting unused or
unnecessary variables (that were used for old codes).

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
20 years agoFix special backptr values on x86/64 to avoid spurious
kaf24@firebug.cl.cam.ac.uk [Mon, 15 Aug 2005 07:45:42 +0000 (07:45 +0000)]
Fix special backptr values on x86/64 to avoid spurious
wrpt emulations.
Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
20 years agoFix cpu_khz reporting in XenLinux.
kaf24@firebug.cl.cam.ac.uk [Mon, 15 Aug 2005 07:26:04 +0000 (07:26 +0000)]
Fix cpu_khz reporting in XenLinux.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agomerge.
kaf24@firebug.cl.cam.ac.uk [Mon, 15 Aug 2005 07:24:30 +0000 (07:24 +0000)]
merge.

20 years agoEnable grant tables by default for network; merge fixes to grant_table.c.
smh22@firebug.cl.cam.ac.uk [Sun, 14 Aug 2005 23:42:11 +0000 (23:42 +0000)]
Enable grant tables by default for network; merge fixes to grant_table.c.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoEnable grant tables by default for networking. Note that the restore path
smh22@firebug.cl.cam.ac.uk [Sun, 14 Aug 2005 23:39:25 +0000 (23:39 +0000)]
Enable grant tables by default for networking. Note that the restore path
(for resume/migrate) is not yet there, but should be shortly.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoLess verbosity from grant_tables.
smh22@firebug.cl.cam.ac.uk [Sun, 14 Aug 2005 23:22:55 +0000 (23:22 +0000)]
Less verbosity from grant_tables.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoLess verbose grant tables when xen is verbose.
smh22@firebug.cl.cam.ac.uk [Sun, 14 Aug 2005 23:20:22 +0000 (23:20 +0000)]
Less verbose grant tables when xen is verbose.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoBuild fixes for grant tables.
smh22@firebug.cl.cam.ac.uk [Sun, 14 Aug 2005 22:56:46 +0000 (22:56 +0000)]
Build fixes for grant tables.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoUpgrade to Linux 2.6.12.4 patch
iap10@freefall.cl.cam.ac.uk [Sun, 14 Aug 2005 22:45:44 +0000 (22:45 +0000)]
Upgrade to Linux 2.6.12.4 patch
Signed-off-by: ian@xensource.com
--HG--
rename : patches/linux-2.6.12/linux-2.6.12.3.patch => patches/linux-2.6.12/linux-2.6.12.4.patch

20 years agoClean up correct number of grant references on netif destory.
smh22@firebug.cl.cam.ac.uk [Sun, 14 Aug 2005 22:09:18 +0000 (22:09 +0000)]
Clean up correct number of grant references on netif destory.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agomerge
iap10@freefall.cl.cam.ac.uk [Sun, 14 Aug 2005 21:48:37 +0000 (21:48 +0000)]
merge

20 years agoMake the default network-script to be '' i.e. don't run a network script. Fix Makefil...
iap10@freefall.cl.cam.ac.uk [Sun, 14 Aug 2005 21:45:26 +0000 (21:45 +0000)]
Make the default network-script to be '' i.e. don't run a network script. Fix Makefile to actually install network-bridge script.

Signed-off-by: ian@xensource.com
20 years agomerge
smh22@firebug.cl.cam.ac.uk [Sun, 14 Aug 2005 20:34:41 +0000 (20:34 +0000)]
merge

20 years agoAllow use of grant tables for netdev tx+rx rings. Code is kinda
smh22@firebug.cl.cam.ac.uk [Sun, 14 Aug 2005 20:34:13 +0000 (20:34 +0000)]
Allow use of grant tables for netdev tx+rx rings. Code is kinda
ugly due at least in part to the fact that we still have separate
_TX and _RX grant config options - expect this to be unified soon.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoFix __pte,__pmd,__pgd for PAE.
kaf24@firebug.cl.cam.ac.uk [Sun, 14 Aug 2005 18:58:25 +0000 (18:58 +0000)]
Fix __pte,__pmd,__pgd for PAE.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoReduce Xen noise on x86/64.
kaf24@firebug.cl.cam.ac.uk [Sun, 14 Aug 2005 17:44:30 +0000 (17:44 +0000)]
Reduce Xen noise on x86/64.

20 years agomerge.
kaf24@firebug.cl.cam.ac.uk [Sun, 14 Aug 2005 17:33:32 +0000 (17:33 +0000)]
merge.

20 years agoSome arch/x86 gnttab cleanups in Xen.
kaf24@firebug.cl.cam.ac.uk [Sun, 14 Aug 2005 17:32:30 +0000 (17:32 +0000)]
Some arch/x86 gnttab cleanups in Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoNow we have verbose=y in Xen by default, tidy up a few unhelpful printk's.
iap10@freefall.cl.cam.ac.uk [Sun, 14 Aug 2005 16:55:34 +0000 (16:55 +0000)]
Now we have verbose=y in Xen by default, tidy up a few unhelpful printk's.
Signed-off-by: ian@xensource.com
20 years agoAvoid stack overflow in netback by statically allocating the
kaf24@firebug.cl.cam.ac.uk [Sun, 14 Aug 2005 09:17:54 +0000 (09:17 +0000)]
Avoid stack overflow in netback by statically allocating the
grant-table map/unmap arrays. Spotted by Michael Vrable.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoCurrently xm list --long only displays info about the last domain. The
kaf24@firebug.cl.cam.ac.uk [Sun, 14 Aug 2005 09:07:56 +0000 (09:07 +0000)]
Currently xm list --long only displays info about the last domain.  The
attached patch fixes this so it displays info about each domain.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
20 years agoThis patch fixes the booting problems on machines with >4GB memory, and
kaf24@firebug.cl.cam.ac.uk [Sun, 14 Aug 2005 09:06:32 +0000 (09:06 +0000)]
This patch fixes the booting problems on machines with >4GB memory, and
is applicable to both x86_64 and x86 PAE.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
20 years agomerge
kaf24@firebug.cl.cam.ac.uk [Sun, 14 Aug 2005 08:09:06 +0000 (08:09 +0000)]
merge

20 years agoFix x86_64 build.
iap10@freefall.cl.cam.ac.uk [Sun, 14 Aug 2005 07:32:21 +0000 (07:32 +0000)]
Fix x86_64 build.
From: Nakajima, Jun [jun.nakajima@intel.com]

20 years agomerge...
iap10@freefall.cl.cam.ac.uk [Sat, 13 Aug 2005 22:04:22 +0000 (22:04 +0000)]
merge...

20 years agoNew 'network-bridge' script that uses ifdown/ifup to configure the interface rather...
iap10@freefall.cl.cam.ac.uk [Sat, 13 Aug 2005 22:02:54 +0000 (22:02 +0000)]
New 'network-bridge' script that uses ifdown/ifup to configure the interface rather than trying to transfer addresses and routes. (Suggested by Gerd Knorr)

Although Li Ge has had problems with this script he had trouble with the previous too. I think this new one should work for more people, particularly those using DHCP on their primary dom0 interface.

Debugging is currently enabled ("sh -x") so a log of the script's execution is output to /var/log/xend.log

Signed-off-by: ian@xensource.com
--HG--
rename : tools/examples/network => tools/examples/network-bridge

20 years agomerge
iap10@freefall.cl.cam.ac.uk [Sat, 13 Aug 2005 21:55:11 +0000 (21:55 +0000)]
merge

20 years agoAdd "set_pte_at_sync" (integrated invlpg) in Linux i386/mm/highmem.c to improve perfo...
iap10@freefall.cl.cam.ac.uk [Sat, 13 Aug 2005 21:52:46 +0000 (21:52 +0000)]
Add "set_pte_at_sync" (integrated invlpg) in Linux i386/mm/highmem.c to improve performance for domains with >900MB of memory.

Signed-off-by: ian@xensource.com
20 years agoOptimize the Linux arch xen implementation of "set_pte_at".
iap10@freefall.cl.cam.ac.uk [Sat, 13 Aug 2005 21:26:49 +0000 (21:26 +0000)]
Optimize the Linux arch xen implementation of "set_pte_at".
Signed-off-by: ian@xensource.com
20 years agomerge
iap10@freefall.cl.cam.ac.uk [Sat, 13 Aug 2005 21:03:39 +0000 (21:03 +0000)]
merge

20 years agoI missed a couple of files out of the patch to wrap calls to update_va_mapping with...
iap10@freefall.cl.cam.ac.uk [Sat, 13 Aug 2005 21:01:35 +0000 (21:01 +0000)]
I missed a couple of files out of the patch to wrap calls to update_va_mapping with BUG_ON(). [We really need an equivalent of 'citool' for mercurial...]
Signed-off-by: ian@xensource.com
20 years agomerge
iap10@freefall.cl.cam.ac.uk [Sat, 13 Aug 2005 20:49:29 +0000 (20:49 +0000)]
merge

20 years agoAdd some profiling support for writeable pagetables.
iap10@freefall.cl.cam.ac.uk [Sat, 13 Aug 2005 20:47:47 +0000 (20:47 +0000)]
Add some profiling support for writeable pagetables.

Signed-off-by: ian@xensource.com
20 years agoFix .hgignore to reflect change in parallax directory structure.
akw27@arcadians.cl.cam.ac.uk [Sat, 13 Aug 2005 16:01:23 +0000 (16:01 +0000)]
Fix .hgignore to reflect change in parallax directory structure.

20 years agoRemove unnecessary union in grant table map/unmap ops.
akw27@arcadians.cl.cam.ac.uk [Sat, 13 Aug 2005 15:47:53 +0000 (15:47 +0000)]
Remove unnecessary union in grant table map/unmap ops.

All addresses, host virtual and PTEs, are now passed in the cunningly
ambiguous "host_addr" field, rather than in an anonymous union.

20 years agoIf block-create didn't work, then chances are block-destroy doesn't work
kaf24@firebug.cl.cam.ac.uk [Sat, 13 Aug 2005 09:06:44 +0000 (09:06 +0000)]
If block-create didn't work, then chances are block-destroy doesn't work
either right :-)

In this case, XendDomain.py is just calling a function that doesn't
exist (device_destroy instead of device_delete).

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
20 years agoxm block-create doesn't work. It seems like this command hasn't even
kaf24@firebug.cl.cam.ac.uk [Sat, 13 Aug 2005 09:06:20 +0000 (09:06 +0000)]
xm block-create doesn't work.  It seems like this command hasn't even
been tested (perhaps since the un-Twisting?).  This particular problem
was that one function was being called with self instead of the right
argument and another function's return value was being used when it
didn't actually return anything.

This patch also improves the error handling a bit by making sure we
don't thrown an exception on a log statement with a None value.  In
general, one should always use the % formatter instead of concatination
for strings in Python (even though this is not what this patch does).

Signed-off-by: Anthony Liguori
20 years agoThis changest allows grant mappings to arbitrary PTEs.
akw27@arcadians.cl.cam.ac.uk [Fri, 12 Aug 2005 17:52:47 +0000 (17:52 +0000)]
This changest allows grant mappings to arbitrary PTEs.

The map operation now takes PTE addresses as well as virtual
addresses.  The contains_pte flag is used to indicate what sort of
address is in the map request.

Additionally, this patch:

  - fixes grant mappings to user space.
  - fixes overflow testing when you run out of maptrack entry space.

Signed-off-by: Andrew Warfield <andrew.warfield@cl.cam.ac.uk>
Signed-off-by: Leoffrey Lefebvre <geoffrey.g.lefebvre@intel.com>
20 years agomerge
iap10@freefall.cl.cam.ac.uk [Fri, 12 Aug 2005 16:59:24 +0000 (16:59 +0000)]
merge

20 years agoRemove the BUG() from HYPERVISOR_update_va_mapping and change all the appropriate...
iap10@freefall.cl.cam.ac.uk [Fri, 12 Aug 2005 16:05:37 +0000 (16:05 +0000)]
Remove the BUG() from HYPERVISOR_update_va_mapping and change all the appropriate callers to wrap in BUG_ON()

Signed-off-by: ian@xensource.com
20 years agoBuild xenstore interface as shared library.
kaf24@firebug.cl.cam.ac.uk [Fri, 12 Aug 2005 15:59:34 +0000 (15:59 +0000)]
Build xenstore interface as shared library.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoanother merge
kaf24@firebug.cl.cam.ac.uk [Fri, 12 Aug 2005 14:53:26 +0000 (14:53 +0000)]
another merge

20 years agoforget to substitute CC back to gcc
vh249@arcadians.cl.cam.ac.uk [Fri, 12 Aug 2005 13:33:57 +0000 (13:33 +0000)]
forget to substitute CC back to gcc

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agomerge
kaf24@firebug.cl.cam.ac.uk [Fri, 12 Aug 2005 13:29:57 +0000 (13:29 +0000)]
merge

20 years agoFix wallclock time when the offset relative to the epoch
kaf24@firebug.cl.cam.ac.uk [Fri, 12 Aug 2005 13:06:23 +0000 (13:06 +0000)]
Fix wallclock time when the offset relative to the epoch
(1 Jan 1970 00:00:00) is negative. This happens in some
LTP tests, for example.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agomake needlessly global functions static and use NULL instead of 0 for pointer
vh249@arcadians.cl.cam.ac.uk [Fri, 12 Aug 2005 13:05:50 +0000 (13:05 +0000)]
make needlessly global functions static and use NULL instead of 0 for pointer

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agonot valid file descriptor is -1 not 0
vh249@arcadians.cl.cam.ac.uk [Fri, 12 Aug 2005 10:51:39 +0000 (10:51 +0000)]
not valid file descriptor is -1 not 0

20 years agoremove pointless NULL checks before free()
vh249@arcadians.cl.cam.ac.uk [Fri, 12 Aug 2005 10:48:42 +0000 (10:48 +0000)]
remove pointless NULL checks before free()

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agoRearrange code in __start_xen() to work around internal
kaf24@firebug.cl.cam.ac.uk [Fri, 12 Aug 2005 09:14:02 +0000 (09:14 +0000)]
Rearrange code in __start_xen() to work around internal
compiler error in x86/64 gcc.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix --output-pid (broken when we fixed --pid-file).
kaf24@firebug.cl.cam.ac.uk [Fri, 12 Aug 2005 07:21:45 +0000 (07:21 +0000)]
Fix --output-pid (broken when we fixed --pid-file).
Thanks to Jerone Young for spotting this.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
20 years agoThis patch fixes "xm reboot" command.
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 22:18:27 +0000 (22:18 +0000)]
This patch fixes "xm reboot" command.

Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
20 years agodomU always reports an error "Ignoring shutdown request: -1" when we
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 22:18:02 +0000 (22:18 +0000)]
domU always reports an error "Ignoring shutdown request: -1" when we
shutdown it from dom0 (using "xm shutdown" command). This patch fixes
it.

Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
20 years agoMemory leak in xc_linux_save, and uninitialised var
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 22:12:11 +0000 (22:12 +0000)]
Memory leak in xc_linux_save, and uninitialised var
in secpol_tool.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
20 years agoFix loop iterator aliasing in x86/32 memory initialisation.
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 21:52:22 +0000 (21:52 +0000)]
Fix loop iterator aliasing in x86/32 memory initialisation.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
20 years agoSupport VCPU migration for VMX guests.
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 21:38:58 +0000 (21:38 +0000)]
Support VCPU migration for VMX guests.

Add a hook to support CPU migration for VMX domains

Reorganize the low level asm code to support relaunching a VMCS on a different
logical CPU.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoFix getdomaininfo for vmx guests.
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 21:19:45 +0000 (21:19 +0000)]
Fix getdomaininfo for vmx guests.
Replaces Intel patch [14/15].
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoRemove arch/xen/x86_64/kernel/init_task.c from sparse tree. It's
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 21:09:06 +0000 (21:09 +0000)]
Remove arch/xen/x86_64/kernel/init_task.c from sparse tree.  It's
identical to the base file, and already marked as a c-link.

Signed-off-by: Chris Wright <chrisw@osdl.org>
20 years agoA simple make ARCH=xen clean && make ARCH=xen vmlinuz will fail because
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 21:08:51 +0000 (21:08 +0000)]
A simple make ARCH=xen clean && make ARCH=xen vmlinuz will fail because
arch/xen/x86_64/kernel/pci-nommu.c and arch/xen/x86_64/kernel/pci-dma.c
symlinks get removed and relinked to base implementation.  Make these non
c-obj's to preserve sparse tree links.

Signed-off-by: Chris Wright <chrisw@osdl.org>
20 years agoChange vpit->period and friends to count in nanoseconds.
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 21:07:17 +0000 (21:07 +0000)]
Change vpit->period and friends to count in nanoseconds.

This actually reduces the amount of 64 bit math we need to do.

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoImplement event filtering command line options for xentrace.
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 21:06:35 +0000 (21:06 +0000)]
Implement event filtering command line options for xentrace.

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoWhen the guest shuts down a VM, make sure that the domain gets destroyed.
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 21:06:15 +0000 (21:06 +0000)]
When the guest shuts down a VM, make sure that the domain gets destroyed.

Device model needs to do xm destroy before it exits on
guest shutdown/poweroff/halt -p.

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years ago[ We'll try to get in a proper fix into 3.0 - this is just the backup plan]
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 21:05:58 +0000 (21:05 +0000)]
[ We'll try to get in a proper fix into 3.0 - this is just the backup plan]

Don't attempt to create paravirtualized devices for VMX domains for now.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoFix comments about the localtime option.
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 21:05:21 +0000 (21:05 +0000)]
Fix comments about the localtime option.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoClean up unused junk in xemexample.vmx
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 21:04:35 +0000 (21:04 +0000)]
Clean up unused junk in xemexample.vmx

Signed-off-by: YongKang You <yongkang.you@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoNeed to reset device model pid on reboot
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 21:04:17 +0000 (21:04 +0000)]
Need to reset device model pid on reboot

Without this, xend will not spawn a new device model process after the reboot.

Signed-off-by: Ke Yu <ke.yu@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoSupport rebooting VMX domains
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 21:03:16 +0000 (21:03 +0000)]
Support rebooting VMX domains

Signed-off-by: Ke Yu <ke.yu@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoHandle VMX domains correctly across xend restarts
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 21:02:51 +0000 (21:02 +0000)]
Handle VMX domains correctly across xend restarts

This patch remembers the device model pid across xend restarts and
avoids creating duplicate device model processes.

Also, device models don't inherit socket fds from xend (which are closed
on exec now), which used to prevent xend restarting.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoSeparate out VMCS host state initialization from the rest
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 21:01:36 +0000 (21:01 +0000)]
Separate out VMCS host state initialization from the rest

This is needed to support virtual cpu migration, because the host state
initialization is done on every migration, but the rest of the initialization
is done once per vcpu.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoImproved error reporting on vmlaunch/vmresume failure.
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 21:01:10 +0000 (21:01 +0000)]
Improved error reporting on vmlaunch/vmresume failure.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoFix config file parsing for VMX domains.
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 20:58:08 +0000 (20:58 +0000)]
Fix config file parsing for VMX domains.

If we define "vif" in the config file, image.py will raise error "vmx:
missing vbd configuration". The reason is "vif" is dealt with as a "vbd"
device.

This patch fixes this issue by dealing with "vbd" and "vif " separately,
removing "macaddr" arg and parsing mac address from "vif" instead.

Also, the vbd doesn't have to be a file anymore, but can be a physical
disk partition.

Signed-off-by: Yunfeng Zhao <yunfeng.zhao@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoThis patch addresses Rustys' [1]suggestions. Most visibly:
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 20:57:09 +0000 (20:57 +0000)]
This patch addresses Rustys' [1]suggestions.  Most visibly:

Entries in the store:
/cpus/cpuX/online -> /cpu/X/availability

Values:
0|1 -> online|offline

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
20 years agoFix handling of memory holes for Xen heap and domain 0
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 18:03:22 +0000 (18:03 +0000)]
Fix handling of memory holes for Xen heap and domain 0
kernel image and ramdisk.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoClean up event-channel notification code in Xen.
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 16:48:36 +0000 (16:48 +0000)]
Clean up event-channel notification code in Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix where "!" operator used in Bitwise operation.
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 16:23:54 +0000 (16:23 +0000)]
Fix where "!" operator used in Bitwise operation.

In IBM we have an internal source code scanner called BEAM. We have run
it against Xen and here are some of the results.

Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
20 years agoMore time fixes. Now time is set properly in domU's, and
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 13:07:08 +0000 (13:07 +0000)]
More time fixes. Now time is set properly in domU's, and
settimeofday() is simplified and fixed.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoAdded support for abbreviated xm sub commands
twilkie@paploo.uk.xensource.com [Thu, 11 Aug 2005 12:06:32 +0000 (12:06 +0000)]
Added support for abbreviated xm sub commands

20 years agoPAE page directories must be below 4GB. Based on a patch
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 10:34:32 +0000 (10:34 +0000)]
PAE page directories must be below 4GB. Based on a patch
from Gerd Knorr.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoThe following patch provides x86_64 SMP support for xen linux. Many,
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 08:59:47 +0000 (08:59 +0000)]
The following patch provides x86_64 SMP support for xen linux.  Many,
many thanks to the help for bug fixes, cleanups, good domU support,
and more from Jun and Xin.  I've tested this on a couple different
machines, and made sure the UP build still boots and works.  dom0 and
domU smp both work.  There's still some cleanups to do, but we'd prefer
to do the last bit in tree.  This doesn't update defconfigs just yet.
That'll be a follow-on patch shortly, so for now, you'll have to manually
enable CONFIG_SMP if you'd like to test.

Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
20 years agoSince Xend doesn't use twisted anymore, remove the references from the
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 08:58:40 +0000 (08:58 +0000)]
Since Xend doesn't use twisted anymore, remove the references from the
Makefile.

Signed-off-by: Mark Williamson <mark.williamson@cl.cam.ac.uk>
20 years agoRemove qemu-vgaram-bin. It's not used any more.
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 08:57:48 +0000 (08:57 +0000)]
Remove qemu-vgaram-bin. It's not used any more.

20 years agoThe attached patch fixes the xm list command, which very
kaf24@firebug.cl.cam.ac.uk [Thu, 11 Aug 2005 08:55:47 +0000 (08:55 +0000)]
The attached patch fixes the xm list command, which very
recently stopped working if security was enabled.

xm list fails if security is enabled because of a single
additional "%" character in a print.

Signed-off-by: Reiner Sailer <sailer@watson.ibm.com>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Wed, 10 Aug 2005 21:55:36 +0000 (21:55 +0000)]
merge?

20 years agoEnable reiserfs in x86_64 domU kernel
iap10@firebug.cl.cam.ac.uk [Wed, 10 Aug 2005 17:48:03 +0000 (17:48 +0000)]
Enable reiserfs in x86_64 domU kernel

Signed-off-by: ian@xensource.com
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Wed, 10 Aug 2005 17:06:29 +0000 (17:06 +0000)]
merge?

20 years agoInstall libxenstore in /usr/lib64 for 64 bit builds
iap10@firebug.cl.cam.ac.uk [Wed, 10 Aug 2005 16:52:03 +0000 (16:52 +0000)]
Install libxenstore in /usr/lib64 for 64 bit builds
Signed-off-by: ian@xensource.com
20 years agoMake xenconsole more friendly when invoked directly.
cl349@firebug.cl.cam.ac.uk [Wed, 10 Aug 2005 16:47:07 +0000 (16:47 +0000)]
Make xenconsole more friendly when invoked directly.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoSmall time fixes.
kaf24@firebug.cl.cam.ac.uk [Wed, 10 Aug 2005 16:03:31 +0000 (16:03 +0000)]
Small time fixes.
Signed-off-by: Keir Fraser <keir@xensource.com>